﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Components
{
    /// <summary>
    /// 
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
    public class AutoRegisterAttribute : Attribute
    {
        ComponentLifeStyleType _componentLifeStyleType;
        /// <summary>
        /// 
        /// </summary>
        public AutoRegisterAttribute() : this(ComponentLifeStyleType.Transient)
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="componentLifeStyleType"></param>
        public AutoRegisterAttribute(ComponentLifeStyleType componentLifeStyleType)
        {
            _componentLifeStyleType = componentLifeStyleType;
        }
        /// <summary>
        /// 
        /// </summary>
        public ComponentLifeStyleType ComponentLifeStyleType
        {
            get { return _componentLifeStyleType; }
        }
    }
}
